package com.rd.student.jiaji.class4.suyan.zrrd.day10;

public class Computer extends Addition {
    public  String control ;
    public  String memory;
    public String input;
    public String output;
    public String arithmetic;
    /*使用组合不用继承，组合由于继承

private Addition addition;
    {
    this.addition = new Addition();
    }

     public Addition getAddition(){
     return addition;}
     computer.addition =new Addition();*/
    Computer(){

    }
    public void output(){
        System.out.println("输出");

    }
    public void input(){
        System.out.println("输入");

    }
    public void calcuate(){
        System.out.println("计算");

    }
    public Computer(String control,String memory,String input,String output,String arithmetic){
        this.arithmetic=arithmetic;
        this.control=control;

        this.input=input;
        this.memory=memory;
        this.output=output;

    }

    public static void main(String[] args) {
        Computer c=new Computer("a","b","c","d","e");
        System.out.println(c.twoSum(1,2));
        c.output();
        c.input();
        c.calcuate();
    }

}



